<%@ taglib uri="/tags/struts-bean" prefix="bean" %>
<%@ taglib uri="/tags/struts-html" prefix="html" %>
<%@ taglib uri="/tags/struts-logic" prefix="logic" %>
<%@ taglib uri="/tags/struts-tiles" prefix="tiles" %>

<html>	
	<body>
	
	<%
		String outwardDate = request.getParameter("c");
		outwardDate =outwardDate.replaceAll("/","%2F");
		
		String outwardTime = request.getParameter("d");
		outwardTime = outwardTime.replaceAll(":","%3A");
		
		String returnDate = request.getParameter("e");
		returnDate = returnDate.replaceAll("/","%2F");
		
		String returnTime = request.getParameter("f");
		returnTime =	returnTime.replaceAll(":","%3A");
	%>
	
		<form id="bookingForm" rel="nofollow" action="http://clkuk.tradedoubler.com/click?p=18311&a=1245029&g=189581&url=http://www.eurostar.com/dynamic/booking.search?VT=LS" method="post" name="formulaire" id="expressbooking">
			<input id="td_outwardChoice" name="td_outwardChoice" value="trainLeaving" type="hidden"/>
			<input id="td_returnChoice" name="td_returnChoice" value="trainLeaving" type="hidden"/>
			<input id="td_direction" name="td_direction" value="return" type="hidden"/>
			<input id="td_country" name="td_country" value="UK" type="hidden"/>
			<input id="td_lang" name="td_lang" value="UK" type="hidden"/>
			<input id="td_departureCity" name="td_departureCity" value="<%= request.getParameter("a") %>" type="hidden"/>
			<input id="td_arrivalCity" name="td_arrivalCity" value="<%= request.getParameter("b") %>" type="hidden"/>
			<input id="td_outwardDate" name="td_outwardDate" value="<%= outwardDate %>" type="hidden"/>
			<input id="td_outwardTime" name="td_outwardTime" value="<%= outwardTime %>" type="hidden"/>
			<input id="td_returnDate" name="td_returnDate" value="<%= returnDate %>" type="hidden"/>
			<input id="td_returnTime" name="td_returnTime" value="<%= returnTime %>" type="hidden"/>
			<input id="td_fareCategory" name="td_fareCategory" value="LEISURE_FARE" type="hidden"/>
	 	<!--	<input id="td_nbPaxAdult" name="td_nbPaxAdult" value="<%= request.getParameter("g") %>" type="hidden"/> -->
		<!--	<input id="td_nbPaxChild" name="td_nbPaxChild" value="<%= request.getParameter("h") %>" type="hidden"/> -->
		<!--	<input id="td_nbPaxYouth" name="td_nbPaxYouth" value="<%= request.getParameter("i") %>" type="hidden"/> -->
		<!--	<input id="td_nbPaxSenior" name="td_nbPaxSenior" value="<%= request.getParameter("j") %>" type="hidden"/> -->

		<br/>
		<br/>
		<br/>
		<br/>

		<center>
			<table>
				<tr>
					<td> <strong>Adults</strong>
						<br/> (26-59)
						<br/>
						<select id="td_nbPaxAdult" name="td_nbPaxAdult"
							onchange="movablePassengerNumber('nbPaxAdult')">
							<option value="0">0</option>
							<option value="1" selected="selected">1</option>
							<option value="2">2</option>
							<option value="3">3</option>
							<option value="4">4</option>
							<option value="5">5</option>
							<option value="6">6</option>
							<option value="7">7</option>
							<option value="8">8</option>
							<option value="9">9</option>
						</select> </td>
					<td>
						<strong>Children</strong>
						<br/> (4-11)
						<br/>
						<select id="td_nbPaxChild" name="td_nbPaxChild">
							<option value="0">0</option>
							<option value="1">1</option>
							<option value="2">2</option>
							<option value="3">3</option>
							<option value="4">4</option>
							<option value="5">5</option>
							<option value="6">6</option>
							<option value="7">7</option>
							<option value="8">8</option>
						</select> </td>
					<td> <strong>Youths</strong>
						<br/>(12-25)
						<br/>
						<select id="td_nbPaxYouth" name="td_nbPaxYouth">
							<option value="0">0</option>
							<option value="1">1</option>
							<option value="2">2</option>
							<option value="3">3</option>
							<option value="4">4</option>
							<option value="5">5</option>
							<option value="6">6</option>
							<option value="7">7</option>
							<option value="8">8</option>
						</select> </td>
					<td> <strong>Seniors</strong>
						<br/>(60+)
						<br/>
						<select id="td_nbPaxSenior" name="td_nbPaxSenior">
							<option value="0">0</option>
							<option value="1">1</option>
							<option value="2">2</option>
							<option value="3">3</option>
							<option value="4">4</option>
							<option value="5">5</option>
							<option value="6">6</option>
							<option value="7">7</option>
							<option value="8">8</option>
						</select> </td>
					</td>
					<table/>
					<br/>
					<br/>
					<br/>
					
					<Center>Click here</cener>
					<br/><br/>
					<table>
						<tr>
							<td align="right"
								style="border:2pt solid rgb(255, 234, 66)">
								<input type="button" value="book with eurostar"
									onClick="document.getElementById('bookingForm').submit()"/>
							</td>
						</tr>
					</table>
						<cener>
					<br/>
						to book your journey directly with <a
					rel='nofollow' href='http://clkuk.tradedoubler.com/click?p=18311&a=1245029&g=189581'
					style='color:#000000;' TARGET='_parent'>
						www.eurostar.com</a>,
						<br/>your selected journey will remain at the top of the
						window.</Center>
						
					</center>
					
					</form>
					
					</table>
					</body>
					</html>